package com.cloud.goodsprovider.dao;

/**
 * Created by itcast on 2019/10/31.
 */

import com.cloud.common.Goods;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;
import java.util.List;

@Component
@Mapper
public interface GoodsDao {
    //查询所有商品
    List<Goods> getAllgoods();
    //根据商品名称模糊查找
    List<Goods> getOnegoods(@Param(value = "gname") String gname);
    //根据id查询单个商品详情
    Goods getOnegid(@Param(value = "gid") int gid);
}
